
extension ListExtension<E> on Iterable {

    E? get firstOrNull => isNotEmpty ? first : null;

    E? get lastOrNull => isNotEmpty ? last : null;

}